/**
 * 
 */
function searchClients(){
	str = document.getElementById("clientType").value;
	if(str != 0){
		document.getElementById("client").disabled = false;
	}
	else{
		document.getElementById("client").disabled = true;
	}
	if(window.XMLHttpRequest)
    {
        xmlhttp = new XMLHttpRequest();
    }

	 xmlhttp.onreadystatechange = function()
	    {
	        if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
	        {
	            	document.getElementById("client").innerHTML = xmlhttp.responseText;
	        }
	    };
	    xmlhttp.open("GET","getClients.jsp?clientType="+str, true);
	    xmlhttp.send();
}